<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">

<head>
    <title>home</title>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
    <meta name="description" content="" />
    <meta name="author" content="" />
    <meta name="keywords" content="" />
    <meta name="generator" content="Webocton - Scriptly (www.scriptly.de)" />

<!-- including some needed scripts... -->
<script type="text/JavaScript" src="jquery.js"></script>
<script type="text/JavaScript" src="three.js"></script>        
<script language="javascript" type="text/javascript">



function init() {  

	getContent("map.html");
	updateServerTime();
}


function getContent(str) {
    $.get(str, function(data) {
		$('#content').html(data);		
	});
}

function updateServerTime() {
    $.get('time.html', function(data) {
		$('#servertime').html(data);		
	});
    setTimeout("updateServerTime()", 60000);
}


</script>

</head>

<body onload="init()">
<h1>Weltherrschafts-controlpanel</h1>
<p align="right">Serverzeit:<div id="servertime"></div></p>
<table><tr>
	<td><a href="javascript:getContent('map.html');">Karte</a></td>
	<td><a href="javascript:getContent('planets.html');">Meine Planeten</a></td>
	<td><a href="javascript:getContent('spaceships.html');">Flotte</a></td>
	<td><a href="javascript:getContent('settings.html');">Einstellungen</a></td>
	<td><a href="javascript:getContent('universe.html');">DebugContent</a></td></tr>
<tr><td colspan="4" ><div id="content">
    //TODO: needs to be filled by ajax via links above....

</div></td></tr></table>

<div id="debugContent"></div>
</body>
</html>
